<?php include("include/lib_func.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>.CLothingcorp.</title>
<link rel="stylesheet" type="text/css" href="style_user/style.css" />
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="iecss.css" />
<![endif]-->
<script type="text/javascript" src="js/boxOver.js"></script>
<script>
PositionX = 100;
PositionY = 100;
defaultWidth  = 500;
defaultHeight = 500;
var AutoClose = true;

if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
	writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
	writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
	writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
	writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(300,300);');
	writeln('width=300-(document.body.clientWidth-document.images[0].width);');
	writeln('height=300-(document.body.clientHeight-document.images[0].height);');
	writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
	writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
	writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=ffffff scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=ffffff scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
close();		
}}

</script>
</head>
<body>

<div id="main_container">

	<div id="header">

       <div class="top_right">
       
            <div class="big_banner">
            <a href="index.php"><img src="images/logo.jpg" alt="" title="" border="0" /></a>
         </div>
        
        </div>
    
<div id="main_content"> 
   
        <div id="menu_tab">
            <ul class="menu">
                <li><a href="index.php" class="nav">Home</a></li>
                <li class="divider"></li>
                <li><a href="profil.php" class="nav">Tentang Kami</a></li>
                <li class="divider"></li>
                <li><a href="cara_pembelian.php" class="nav">Cara Pembelian</a></li>
                <li class="divider"></li>
                <li>
					<?php 
						error_reporting(0);
						$cek = cek_login();
						
						if ($cek == 1){
							echo "<a href='aksi/logout.php' class='nav'>Log Out</a>";
						}else{
							echo "<a href='sign_up.php' class='nav'>Log In</a>";
						}
					?>
				</li>
				<li class="divider"></li>
                <li><a href="search.php" class="nav">Pencarian</a></li>
            </ul>
		</div><!-- end of menu tab -->
            
	<div class="crumb_navigation">
			Navigation: <span class="current">Profil</span>
		</div>        
    
		<div class="left_content">
			<div class="title_box">Kategori</div>
				<?php ShowKategori(); ?><br />
				
			<div class="title_box">List Penjual</div>   
				<?php ShowPenjual(); ?>
		 
			<div class="banner_adds">Iklan dipajang disini</div>    
		</div><!-- end of left content --> 
		
	
		<div class="center_content">
			<div class="center_title_bar">Profil</div>
		
				<div class="prod_box_big">
					<p>
						Kami adalah anak gembala
						POkoke Asolole lah
					</p>
					 
					<p>Berikut adalah data lengkap toko kami :</p>
				</div>
		</div><!-- end of center content -->
		
		<div class="right_content">
			<?php
				$hasil = cek_login();
				if ($hasil == 1): ?>
					<div class="shopping_cart">
						<div class="title_box">Informasi Member</div>
						
						<div class="border_box">
							Selamat datang <b>
							<?php
								$nama = get_nama();
								echo $nama;
							?></b>
						</div>
						
						<div class="cart_details">
							Ada <?php echo get_jml_item() ?> Buku<br />
							<span class="border_cart"></span>
							Total Harga: Rp. <span class="price"><?php echo get_tot_bayar() ?></span>
						</div>
				
						<div class="cart_icon">
							<a href="view_keranjang.php" title=""><img src="images/shoppingcart.png" alt="" title="" width="35" height="35" border="0" /></a>
						</div>
			
					</div><br>
			<?php 
				endif
			?>
			
			<div class="title_box">Produk Terfavorit</div>  
		   	<?php 
		   		view_ten_produk();
		   	?>
		 
		 
		 
			<div class="banner_adds">
		 
				<a href="#">Iklan disini</a>
			</div>        
		 
		</div><!-- end of right content -->   


            
	</div><!-- end of main content -->
   
   
   
	<div class="footer">
	    <div class="left_footer">
			<img src="images/logo.jpg" alt="" title="" width="198" height="42"/>
		</div> 
        
        <div class="center_footer">
			<a href="index.php">clothingcorp</a>
			<br />
			Copyright 2012<br />
        </div>
        
        <div class="right_footer">
			Kelompok 5 RBPL Kelas A
        </div>   
   
	</div>                


</div>
<!-- end of main_container -->
</body>
</html>